<div class="product_list">
	<?php
	$current_locale_code = $this->getCurrentStore()->getLocaleCode();
	$current_locale_code = substr( $current_locale_code,0,2 );
	$currency = Mage::getSingleton( "contacter/contacter" )->getCurrency()->getCurrencyOptions( $this->getCurrentCurrencyCode() );
	$session = Mage::getSingleton('catalog/session');
	?>
	<?php $product_collection = $this->getProductList();?>
	
	<?php if( $product_collection && $product_collection->getSize() ):?>
		<?php $line_color_sets = array( "#ffffff","#f9fafb" );?>
		<?php $color_count = count( $line_color_sets );?>
		<?php $line_counter = 1;?>
		<?php $_helper = $this->helper('catalog/output');?>
		<?php foreach( $product_collection as $_product ):?>	
		<?php $_tierPrices = $this->getTierPrices( $_product );?>
				<?php 
					if (!$_tierPrices){
						$_tierPrices = array();
						$_tierPrices[0]['price_qty'] = 1;
						$_tierPrices[0]['price'] = $this->helper('tax')->getPrice($_product, $_product->getPrice());
					}
					$bg_color = $line_color_sets[ $line_counter++%$color_count ];
				?>
				<table width="100%" cellspacing="0" cellpadding="0" align="center">
					<tbody>
						<tr bgcolor="<?php echo $bg_color;?>">
							<td class="product_image">
							<?php if ($_product->getImage() != 'no_selection' && $_product->getImage()): ?>
								<?php
									$_img = '<img id="image" src="'.$this->helper('catalog/image')->init($_product, 'image')->resize(80).'" width="80" height="80" alt="'.$this->htmlEscape( $_product->getName() ).'" title="'.$this->htmlEscape( $_product->getName() ).'" />';
									echo $_helper->productAttribute($_product, $_img, 'image');
								?>
							<?php endif;?>
							</td>
							<td class="product_info">
								<a href="<?php echo $_product->getProductUrl();?>"><?php echo $_product->getName();?></a>
								<p><?php echo $this->__("Model:");?>&nbsp;<?php echo $_product->getData('model');?></p>
								<p><?php echo $this->__("We have <b>%d</b> in stock.",(int)$_product->getQty());?></p>
							</td>
							<td class="make_offer">
									<input type="hidden" name="product_id[]" value="<?php echo $_product->getId();?>">
									<p>
										<span><?php echo $this->__("My Offer On %s Units Is For %s Per Unit","<input type=\"text\" id=\"offer_qty_".$_product->getId()."\" value=\"".$this->getOfferQty( $_product->getId() )."\" name=\"offer_qty[]\" onbeforepaste=\"clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''));\" onkeyup=\"value=value.replace(/[^\d]/g,'');\">",$currency['symbol']."<input type=\"text\" value=\"".$this->getOfferPrice( $_product->getId() )."\"  id=\"offer_price_".$_product->getId()."\" name=\"offer_price[]\" onbeforepaste=\"clipboardData.setData('text',clipboardData.getData('text').replace(/[^\d]/g,''));\" onkeyup=\"value=value.replace(/[^\d]/g,'');\">");?></span>
									</p>
							</td>
						</tr>
				</tbody></table>	
		<?php endforeach;?>
	<?php endif;?>	
</div>